﻿<%@ Page Title="" Language="C#" MasterPageFile="~/SiteMaster.Master" AutoEventWireup="true"
    CodeBehind="MaterialReport.aspx.cs" Inherits="KCL.Material.MaterialReport" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <link href="../styles/css/style.css" rel="stylesheet" type="text/css" />
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <div class="boxed">
    <h2 class="title" style="text-align: left; font-weight: bold; padding-left: 20px;
                    padding-top: 10px; height: 30px">
                    Danh sách nguyên liệu tồn kho
                </h2>
    <asp:GridView ID="GridView1" runat="server" BackColor="White" BorderColor="#DEDFDE"
        BorderStyle="None" BorderWidth="1px" CellPadding="4" EnableModelValidation="True"
        ForeColor="Black" GridLines="Vertical" Width="950px" AutoGenerateColumns="False"
        DataSourceID="srcMaterialView">
        <AlternatingRowStyle BackColor="White" />
        <Columns>
            <asp:BoundField DataField="code" HeaderText="Mã nguyên liệu" SortExpression="code" />
            <asp:BoundField DataField="name" HeaderText="Tên nguyên liệu" 
                SortExpression="name" />
            <asp:BoundField DataField="product" HeaderText="Sản phẩm" SortExpression="product" />
            <asp:BoundField DataField="color" HeaderText="Loại màu" SortExpression="color" />
            <asp:BoundField DataField="size" HeaderText="Kích thước" SortExpression="size" />
            <asp:BoundField DataField="thickness" HeaderText="Độ dày" SortExpression="thickness" />
            <asp:BoundField DataField="madein" HeaderText="Xuất xứ" SortExpression="madein" />
            <asp:BoundField DataField="quantity" HeaderText="Số lượng" 
                SortExpression="quantity" >
            <ItemStyle HorizontalAlign="Right" />
            </asp:BoundField>
        </Columns>
        <FooterStyle BackColor="#CCCC99" />
        <HeaderStyle BackColor="#FFFFCC" Font-Bold="True" ForeColor="#CC0000" />
        <PagerStyle BackColor="#F7F7DE" ForeColor="Black" HorizontalAlign="Right" />
        <RowStyle BackColor="#F7F7DE" />
        <SelectedRowStyle BackColor="#CE5D5A" Font-Bold="True" ForeColor="White" />
    </asp:GridView>
    </div>
    <asp:ObjectDataSource ID="srcMaterialView" runat="server" SelectMethod="GetMaterialsToReport"
        TypeName="KCL.Code.Business.MaterialServices"></asp:ObjectDataSource>
</asp:Content>
